package javabasics.designpattern.flyweight;

/**
 * @Author suxiaoxiao
 * @Date 2019/6/1 15:29
 * @Version 1.0
 */
public class FlyweightTest {

    public static void main(String[] args) {
        ReportManagerFactory reportManagerFactory = new ReportManagerFactory();
        IReportManager rm = reportManagerFactory.getFinancialReportManager("A");
        System.out.println(rm.createReport());
        IReportManager rm1 = reportManagerFactory.getEmployeeReportReportManager("B");
        System.out.println(rm1.createReport());
    }

}
